import { request } from "../utils/http";

// 获取用户列表
export function getUserList(params) {
  return request({
    url: "/api/um/list",
    ...params,
    method: "get"
  })
}

export function getUserInfo(id,callBack) {
  return request({
    url: `/api/um/info/${id}`,
    callBack,
    method: "get"
  })
}

export function focusUser(id,callBack) {
  return request({
    url: `/api/um/focus/${id}`,
    callBack,
    method: "get"
  })
}
export function focusCancelUser(id,callBack) {
  return request({
    url: `/api/um/focusCancel/${id}`,
    callBack,
    method: "get"
  })
}
export function focusCount(callBack) {
  return request({
    url: `/api/um/focusCount`,
    callBack,
    method: "get"
  })
}

export function getFocusList(params) {
  return request({
    url: `/api/um/focusList`,
    ...params,
    method: "get"
  })
}

export function updateInfo(params) {
  return request({
    url: `/api/um/updateInfo`,
    ...params,
    method: "put"
  })
}

export function attrConfList(callBack) {
  return request({
    url: `/api/um/attrConfList`,
    callBack,
    method: "get"
  })
}

export function getWeddingGift(callBack) {
  return request({
    url: `/api/um/getWeddingGift`,
    callBack,
    method: "GET"
  })
}

export function addWeddingGift(params) {
  return request({
    url: `/api/um/addWeddingGift`,
    ...params,
    method: "POST"
  })
}

